﻿using System;
using eCommerce.core.AdminGroup;
using eCommerce.core.Authenticated;
using eCommerce.core.Helpers;

namespace eCommerce.cms.Controls.BuyingAndSelling
{
    public partial class Manager : AuthenticatedControl
    {
        protected bool IsAdministrator;
        protected int StoreId;

        protected void Page_Load(object sender, EventArgs e)
        {
            IsAdministrator = StatusHelper.IsChecked(Utils.ToInt32(CurrentUser.Status), AdminGroupObject.IsAdministrator);
            StoreId         = CurrentUser.StoreId;
        }
    }
}